<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/mb/jsp/common.jsp" %>
<%@ page import="com.limao.servlet.WebFunction" %>
<%@ page import="com.limao.DBDataClass.CrowdUserAuthClass" %>

<%
    String shareid=request.getParameter("shareid");
    if (CacheClass.getIntValue(shareid) == 0) {
        out.println("<script language='JavaScript'>alert('出错！');location.href=document.referrer;</script>"); //后退并刷新
        return;
    }
    CrowdUserAuthClass user = WebFunction.getUserInfo(shareid);
    if (user == null) {
        out.println("<script language='JavaScript'>alert('出错！');window.history.back(-1);</script>");
        return;
    }
%>

<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>我的二维码</title>

    <script src="mb/js/jquery.qrcode.js"></script>
    <script src="mb/js/utf.js"></script>

</head>
<body ontouchstart="">
<div style="display:none">
	<img src="mb/images/logo5.png">
</div>
<div class="container db jz" style="padding-bottom: 0;padding-top: 11px;">
    <section class="proSection pr w100 bcf">
        <div class="drawMoney">
            <p class="c3 f14 tc" style="margin-top: 20px;">我为 <span class="cred">《七彩云购》</span> 代言</p>
            <p class="c9 tc f12" style="margin-bottom: 20px;margin-top: 6px">购物、投资理财，尽在其中！</p>
        </div>
    </section>

    <div class="myqrcode w100 h100 of">

       <a href='<%=user.qrcodeurl%>'> <div id="qrcodeCanvas" class="jz db"></div>
	   </a>
        <p class="f12 cred tc w100">【扫描】或 【点击】  二维码注册、下载应用APP</p>
        
        
    
        
    </div>
    

</div>

<script type="text/javascript">
     
    $(document).ready(function () {
        $("#qrcodeCanvas").qrcode({
            render: "canvas",    //设置渲染方式，有table和canvas，使用canvas方式渲染性能相对来说比较好
            text: "<%=user.qrcodeurl%>",    //扫描二维码后显示的内容,可以直接填一个网址，扫描二维码后自动跳向该链接
            width: "200",               //二维码的宽度
            height: "200",              //二维码的高度
            background: "#ffffff",       //二维码的后景色
            foreground: "#000000",        //二维码的前景色
            src: 'mb/images/logo4.png'             //二维码中间的图片
        });
    });

</script>

</body>
</html>
